public class User2 {
    public static void main(String[] args){
        User user=new User(123,"张三",1111);
        System.out.println("id:"+user.getId());
        System.out.println("name："+user.getName());
        System.out.println("key："+user.getKey());
    }
}
 